var xyz;
(function (xyz) {
    /**
     * 右键菜单
     */
    var ctxmenu = (function () {
        function ctxmenu() {
            this.menuUlHtml = document.createElement("ul");
            this.menuHtml = document.createElement("div");
            this.menuHtml.className = "dialog ctxmenu";
            this.menuHtml.appendChild(this.menuUlHtml);
        }
        ctxmenu.prototype.addMenuItem = function (html, clickevent) {
            var that = this;
            var li = document.createElement("li");
            li.innerHTML = html;
            li.onclick = function () {
                clickevent();
                that.menuHtml.style.display = "none";
            };
            this.menuUlHtml.appendChild(li);
        };
        ctxmenu.prototype.addMenuTo = function (html) {
            var that = this;
            document.body.appendChild(this.menuHtml);
            html.onblur = function () {
                that.menuHtml.style.display = "none";
            };
            html.oncontextmenu = function (ev) {
                that.menuHtml.style.top = ev.pageY + "px";
                that.menuHtml.style.left = ev.pageX + "px";
                that.menuHtml.style.display = "block";
                return false;
            };
        };
        return ctxmenu;
    }());
    xyz.ctxmenu = ctxmenu;
    /**
     * 对话框
     */
    var dialogs = (function () {
        function dialogs() {
        }
        return dialogs;
    }());
    xyz.dialogs = dialogs;
})(xyz || (xyz = {}));
var xyz;
(function (xyz) {
    var colormenu = (function () {
        function colormenu() {
        }
        colormenu.prototype.show = function () {
        };
        return colormenu;
    }());
    xyz.colormenu = colormenu;
})(xyz || (xyz = {}));
